package com.projects.api.module.demo.service.impl;

import com.projects.api.common.model.query.PageQuery;
import com.projects.api.module.demo.entity.Demo;
import com.projects.api.module.demo.mapper.DemoMapper;
import com.projects.api.module.demo.query.DemoQuery;
import com.projects.api.module.demo.service.DemoService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author zhangzhenfu
 * @Description
 * @date 2022/8/14 0014 17:03
 */
@Service
@AllArgsConstructor
public class DemoServiceImpl implements DemoService {

    private DemoMapper demoMapper;

    @Override
    public List<Demo> queryDemo(DemoQuery query) {
        return demoMapper.listDemo(query);
    }

    @Override
    public Demo getDemo(Integer id) {
        return null;
    }

    @Transactional
    @Override
    public Demo createDemo(Demo form) {
        return null;
    }

    @Transactional
    @Override
    public Demo modifyDemo(Demo form) {
        return null;
    }

    @Transactional
    @Override
    public boolean removeDemo(Integer id) {
        return false;
    }
}
